<div class="featuresblock">
    <?php if($featuresblock->getFeaturesBlock()->getRenderTitle()): ?>
        <div class="featuresblock-title">
            <b class="large"><?php echo $featuresblock->getTitle()?></b>
            <hr>
        </div>
    <?php endif; ?>
    <?php foreach ($featuresblock->getFeaturesBlock()->getFeatures() as $feature): ?>
        <?php if($feature->getIsEnabled()): ?>
            <div class="feature">
                <?php if($featuresblock->getFeaturesBlock()->getUsesBullet()): ?>
                    <div class="bullet">
                        <?php if($feature->getIsNew()): ?>
                            <img alt="Nuevo" src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$featuresblock->getFeaturesBlock()->getBulletNew()?>">
                        <?php else: ?>
                            <img alt="" src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$featuresblock->getFeaturesBlock()->getBullet()?>">
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
                <div class="feature-content">
                    <?php if($hasBigScreen): ?>
                        <?php if($feature->getContent()->getThumbBig() != ''): ?>
                            <div class="feature-image">
                                <a href="<?php echo url_for(($portal->getDownloadableContentsPreview() ? 'render_content': 'render_download_content'),$feature->getContent())?>">
                                    <img alt="<?php echo $feature->getContent()->getTitle()?>"
                                         src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$feature->getContent()->getThumbBig()?>">
                                 </a>
                            </div>
                        <?php elseif($feature->getContent()->getThumbSmall() != ''): ?>
                            <div class="feature-image">
                                <a href="<?php echo url_for(($portal->getDownloadableContentsPreview() ? 'render_content': 'render_download_content'),$feature->getContent())?>">
                                    <img alt="<?php echo $feature->getContent()->getTitle()?>"
                                         src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$feature->getContent()->getThumbSmall()?>">
                                </a>
                            </div>
                        <?php endif; ?>
                    <?php else: ?>
                        <?php if($feature->getContent()->getThumbSmall() != ''): ?>
                            <div class="feature-image">
                                <a href="<?php echo url_for(($portal->getDownloadableContentsPreview() ? 'render_content': 'render_download_content'),$feature->getContent())?>">
                                    <img alt="<?php echo $feature->getContent()->getTitle()?>"
                                         src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$feature->getContent()->getThumbSmall()?>">
                                </a>
                            </div>
                        <?php endif; ?>
                    <?php endif;?>
                    <div class="feature-text">
                        <div class="feature-title">
                            <a class="large"
                                href="<?php echo url_for(($portal->getDownloadableContentsPreview() ? 'render_content': 'render_download_content'),$feature->getContent())?>"
                                title="<?php echo $feature->getContent()->getTitle()?>">
                                <b><?php echo $feature->getContent()->getTitle()?></b>
                            </a>
                        </div>
                        <?php if($feature->getContent()->getSummary() != ''): ?>
                            <div class="feature-summary">
                                <?php echo $feature->getContent()->getSummary()?>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        <?php endif; ?>
    <?php endforeach;?>
</div>